Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asana | Fix events stream #1304

Closed
wants to merge 3 commits into from
Closed

Asana | Fix events stream #1304

wants to merge 3 commits into from

Conversation

Z33DD
Copy link
Contributor

@Z33DD Z33DD commented Mar 2, 2024

Description:

According to airbytehq/airbyte#31114 and airbytehq/airbyte#31114, those streams will throw errors if the account doesn't pay for an Asana's paid plan.
The problem with the events' stream is the different pagination style that demands the first request to return a 'Precondition Failed' failed error (412).

About the Events stream, it is broken because of pagination, so it is not related to the paid account issue. I tested this flow with both paid and free accounts, the error is the sync token. I also added a condition in the next_page_token method to stop reading if the API returns has_more as false.

Pagination for HTTP API connectors

Asana API Reference:


This change is Reviewable

@Z33DD Z33DD marked this pull request as ready for review March 4, 2024 17:46
@Z33DD Z33DD self-assigned this Mar 5, 2024
@Z33DD Z33DD closed this Mar 5, 2024
@Z33DD Z33DD deleted the FIX/source-asana/events-stream branch March 5, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant